







{include file="index/header" /}

<ol class="breadcrumb">
    <li><a href="__ROOT__/admin">首页</a></li>
    <li><a href="__ROOT__/admin">后台首页</a></li>
    <li class="active">后台介绍</li>
</ol>
<p>课程章节：</p>

<table class="table table-bordered table-hover ">
    <thead>
    <tr>
        <th> ID</th>
        <th> 课程标题</th>
        <th> 课程介绍</th>
        <th>价格</th>
        <th>设置</th>
    </tr>
    </thead>

    <tbody>
    {volist name='show' id='user'}

    <tr>
        <th> {$user.id}</th>
        <td><a href="__ROOT__/admin/index/view/id/{$user.id} ">{$user.title|mb_substr=0,20,'utf-8' }</a>
        </td>
        <td> {$user.content|mb_substr=0,50,'utf-8'|default="内容待编辑..."| }</td>
        <td>18元</td>
        <td>
            <button type="submit" id="btn" class="btn btn-primary">编辑</button>
            <button type="submit" id="btn" class="btn btn-danger" data-toggle="modal" data-target="#myModal{$user.id}">删除</button>
        </td>
    </tr>


    <!-- Modal -->
    <div class="modal fade" id="myModal{$user.id}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">提示</h4>
                </div>
                <div class="modal-body">
                    删除确认...{$user.title|mb_substr=0,20,'utf-8' }
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <a href="__ROOT__/admin/index/delete/id/{$user.id}" id="btn" class="btn btn-danger">删除</a>
                </div>
            </div>
        </div>
    </div>
    {/volist}
    </tbody>
</table>


{$show->render()}
</div>
{include file="index/footer" /}